/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;
import java.util.HashMap;
/**
 *
 * @author Chong & Ali
 */
public class Location {

    private int xPos;
    private int yPos; 
    private GameObject object;
    private Floor floor;    
    private HashMap<String, Location> neighbours;
    
    public Location(int x, int y){
         this.xPos = x ;
         this.yPos = y ;
         this.object = null;
         this.floor = null;
         neighbours = new HashMap<String, Location>();        
    }

    public Location getNeighbour(String direction) {
        return neighbours.get(direction);
    }
    
    public void setNeighbour(String direction, Location location) {
        neighbours.put(direction, location);
    }
    
    public GameObject getGameObject(){
        return object;
    }

    public void setGameObject(GameObject object){
        this.object = object;
    }
        
    public Floor getFloor(){
        return floor;
    }

    public void setFloor(Floor floor){
        this.floor = floor;
    }
        
    public int getXpos() {
        return xPos;
    }

    public void setXpos(int xPos) {
        this.xPos = xPos;
    }

    public int getYpos() {
        return yPos; 
    }

    public void setYpos(int yPos) {
        this.yPos = yPos;
    }
}
